package com.woniuxy.patrol.mapper;

import com.woniuxy.patrol.pojo.PatrolPoint;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 13162
* @description 针对表【wcm_patrol_point(巡更点表)】的数据库操作Mapper
* @createDate 2025-07-14 19:22:37
* @Entity com.woniuxy.patrol.pojo.PatrolPoint
*/
public interface PatrolPointMapper extends BaseMapper<PatrolPoint> {

    /**
     * 根据社区ID查询点位列表
     */
    List<PatrolPoint> selectByCommunityId(@Param("communityId") Long communityId);

    /**
     * 根据路线ID查询关联的点位
     */
    List<PatrolPoint> selectByRouteId(@Param("routeId") Long routeId);

}




